package com.mayikt.member.service;

import com.alibaba.fastjson.JSONObject;
import com.mayikt.base.BaseResponse;
import com.mayikt.member.input.dto.UserLoginInpDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Api(tags = "MemberLoginService",description = "用户登陆服务")
public interface MemberLoginService {
    /**
     * 用户登陆
     * @param userLoginInpDTO
     * @return
     */
    @ApiOperation("用户登陆接口")
    @PostMapping("/login")
    @Transactional
    public BaseResponse<JSONObject> login(@RequestBody UserLoginInpDTO userLoginInpDTO);
}
